﻿using System;
using System.Collections.Generic;
using System.Text;
using SHJunketingDAL;
using SHJunketingModel;
using System.Data;
namespace SHJunketingBLL
{
    public class C_YuyueTypeManage
    {
        public static IList<C_YuyueType> GetAllC_YuyueType()
        {
            return C_YuyueTypeService.GetAllC_YuyueType();
        }

        public static DataTable GetYuyueTypeInfo(string name)
        {
            return C_YuyueTypeService.GetYuyueTypeInfo(name);
        }

        public static C_YuyueType GetYuyueTypeByID(int id)
        {
            return C_YuyueTypeService.GetC_YuyueTypeById(id);
        }

        public static void ModifyYuyueType(C_YuyueType YuyueType)
        {
             C_YuyueTypeService.ModifyC_YuyueTypeInfo(YuyueType);
        }

        public static int DeleteC_YuyueTypeByRoleId(string id)
        {
             return C_YuyueTypeService.DeleteC_YuyueTypeInfoByRoleId(id);
        }

        // public static int DeleteC_YuyueTypeByRoleId(string id)
        //{
        //     return C_YuyueTypeService.DeleteC_YuyueTypeInfoByRoleId(id);
        //}

        public static C_YuyueType AddC_YuyueTypeInfo(C_YuyueType c_YuyueType)
        {
            return C_YuyueTypeService.AddC_YuyueTypeInfo(c_YuyueType);
        }
    }
}
